import {createStore,combineReducers,applyMiddleware} from 'redux'
import CollapsedReducer from './reducer/CollapseReducer'
import RecipeListReducer from './reducer/recepelistReducer'
import promiseMiddleware from 'redux-promise'

const reducer= combineReducers({
    isCollapsed:CollapsedReducer,
    relist:RecipeListReducer
})

const store = createStore(reducer,{
    //isCollapsed:false
    //relist:[]
},applyMiddleware(promiseMiddleware))

export default store